<link href="../styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.header {
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #000000;
	text-decoration: none;
}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" background="images/leftmenu_bg.jpg">
      <!--		<TD WIDTH="30%"> -->
      <!-- ** Tabla Categorias ** -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/categories.jpg" width="192" height="44"></td>
        </tr>
        <tr valign="top">
          <td> <? print $TPL_categories_value; ?> </td>
        </tr>
      </table>
      <!-- ** ** -->
    </td>
    <td valign="top"><TABLE WIDTH="100%" BORDER="0" align="center" CELLPADDING="6" CELLSPACING="0">
        <!-- ** LAST AUCTIONS INSERTED ** -->
        <TR VALIGN="top">
          <TD><img src="images/auction.gif" width="373" height="67"></TD>
        </TR>
        <TR VALIGN="top">
          <TD WIDTH="92%"> <TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="100%">
              <TR>
                <TD COLSPAN=2> <B><? print $MSG_278; ?></B> <table>
                    <? print $TPL_last_auctions_value; ?></table></TD>
              </TR>
            </TABLE></TD>
        </TR>
        <!-- ** HIGHER BIDS ** -->
        <TR VALIGN="top">
          <TD WIDTH="92%"> <BR> <TABLE border="0" cellpadding="5" cellspacing="0" width="100%">
              <TR>
                <TD width="350" colspan=2> <IMG src="./images/linea.gif" width="350" height="8"><BR>
                  <B><? print $MSG_279; ?></B><BR> <TABLE>
                    <? print $TPL_maximum_bids; ?></TABLE></TD>
              </TR>
            </TABLE></TD>
        </TR>
        <!-- ** ENDING SOON ** -->
        <TR VALIGN="top">
          <TD><TABLE border="0" cellpadding="5" cellspacing="0" width="100%">
              <TR>
                <TD colspan=2> <IMG src="./images/linea.gif" width="350" height="8"><BR>
                  <B><? print $MSG_280; ?></B> <BR> <table>
                    <? print $TPL_ending_soon_value; ?></table></TD>
              </TR>
            </TABLE></TD>
        </TR>
        <TR VALIGN="top">
          <TD WIDTH="92%"> <BR> <TABLE border="0" cellpadding="5" cellspacing="0" width="100%">
              <TR>
                <TD colspan=2> <p><IMG src="./images/linea.gif" width="350" height="8"><BR>
                    <?
      	if($SETTINGS[newsbox] == 1)
      	{
      ?>
                    <B><? print $MSG_282; ?></b>
                  <p> <? print $TPL_news_list; ?>
                    <?
					}
				?>
                  <table>
                    </table></TD>
              </TR>
            </TABLE></TD>
        </TR>
        <!-- end table started with ** LAST AUCTIONS INSERTED ** -->
      </TABLE></td>
    <td width="192" valign="top" background="images/rightmenu_bg.jpg">
      <?
	if($SETTINGS[loginbox] == 1)
	{
		if(!$HTTP_SESSION_VARS["PHPAUCTION_LOGGED_IN"])
		{
?>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
          <TR>
            <TD><img src="images/userlogin.jpg" width="192" height="44"></TD>
          </TR>
          <?php
          if($_GET[err] == '1')
          {
          ?>
          <tr>
          <td align=center><font class=verdana color="#FF001E">Username or password is incorrect</font></td>
          </tr>
          <?php
          }
          ?>
          <TR>
          	<TD align="center">
     			<FORM NAME=login ACTION=login.php METHOD=post>
          		<TABLE width="90%" border="0" cellspacing="0" cellpadding="0">
				  <TR valign="top">
					<TD height="16" colspan="3"><B><? print $HTTP_COOKIE_VARS[$LOGGED_IN_COOKIE]; ?></B></TD>
				  </TR>
				  <TR valign="top">
					<TD height="16" width="16%"><? print $MSG_003; ?> </TD>
					<TD height="16" width="14%"></TD>
					<TD height="16" width="70%"> <INPUT type="text" name="username" size="8"></TD>
				  </TR>
				  <TR valign="top">
					<TD height="16" width="16%"> <? print $MSG_004; ?> </TD>
					<TD height="16" width="14%"></TD>
					<TD height="16" width="70%"> <INPUT type="password" name="password" size="8"></TD>
				  </TR>
				  <TR valign="top">
					<TD height="16" colspan="3"><A href="forgotpasswd.php"><? print $MSG_215; ?></A></TD>
				  </TR>
				  <TR valign="top">
					<TD height="16" width="16%">&nbsp;</TD>
					<TD height="16" width="14%"></TD>
					<TD height="16" width="70%"> <INPUT type="submit" name="action" value="<? print $MSG_275; ?>"></TD>
				  </TR>
          		</TABLE>
				</FORM>
          	</TD>
          </TR>
        </TABLE>
      <?
	}
	else
	{
?>
      <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
        <TR>
          <TD colspan="2"><img src="images/userlogin.jpg" width="192" height="44"></TD>
        </TR>
        <TR>
        	<TD colspan="2">
        		<TABLE width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
					<TR valign="top">
					  <TD height="16" colspan="2"> <? print $MSG_247."<B>".$HTTP_SESSION_VARS[PHPAUCTION_LOGGED_IN_USERNAME]."</B>"; ?>
					  </TD>
					</TR>
					<TR valign="top">
					  <TD height="16" colspan="2">&#8226; <A HREF="./edit_data.php?"> <? print $MSG_244; ?>
						</a></TD>
					</TR>
					<TR valign="top">
					  <TD height="16" colspan="2">&#8226; <A HREF="user_menu.php"> <? print $MSG_622; ?>
						</A></TD>
					</TR>
					<TR valign="top">
					  <TD height="16" colspan="2">&#8226; <A HREF="logout.php"> <? print $MSG_245; ?>
						</A><br><br></TD>
					</TR>
        		</TABLE>
        	</TD>
        </TR>
      </TABLE>
      <?
	}
}
?>
      <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
        <TR>
          <TD><img src="images/helpcolumn.jpg" width="192" height="40"></TD>
        </TR>
        <TR valign="top">
          <TD height="39" width="90%" align="center">
          	<TABLE width="90%" border="0" cellspacing="0" cellpadding="0">
				<TR valign="top">
				  <TD height="39" width="90%" align="left">
					<? print $TPL_helptopics; ?>
				  </TD>
				</TR>
          	</TABLE>
          </TD>
        </TR>
      </TABLE>
    </td>
  </tr>
</table>